{template 'common/header'}

<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('system', array('op' => 'system_1'))}">基础设置</a></li>
</ul>

<style type='text/css'>
	.tab-pane {padding:20px 0 20px 0;}
	.input-group-addon
	{
		background-color: white;
	}
</style>
<div class="main">
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="form1">
		<div class="panel panel-info">
			<div class="panel-heading">
				基础设置
			</div>
			<div class="panel-body">

				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2  control-label" >活动状态</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-8">
						<label for="state-1" class="radio-inline">
							<input id="state-1" type="radio" value="1" name="system[act_state]" {if $system['act_state'] == 1 || empty($system['act_state'])}checked{/if}>开启
						</label>
						<label for="state-2" class="radio-inline">
							<input id="state-2" type="radio" value="2" name="system[act_state]" {if $system['act_state'] == 2}checked{/if}>关闭
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2  control-label" >扣除积分</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-8">
						<input type="number" name="system[act_credit1]" class="form-control" value="{$system['act_credit1']}" />
						<div class="help-block">如不需要扣除积分设置0</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2  control-label" >每日每人抽奖次数</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-8">
						<input type="number" name="system[act_maxnon]" class="form-control" value="{$system['act_maxnon']}" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2  control-label" >每日总奖次数</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-8">
						<input type="number" name="system[act_maxday]" class="form-control" value="{$system['act_maxday']}" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2  control-label" >转盘指针颜色</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-8">
						<input type="text" name="system[act_color1]" class="form-control" value="{$system['act_color1']}" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2  control-label" >转盘边框颜色</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-8">
						<input type="text" name="system[act_color2]" class="form-control" value="{$system['act_color2']}" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2  control-label" >活动介绍</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-8">
						{php echo tpl_ueditor('system[act_info]', $system['act_info']);}
					</div>
				</div>

				<div class="form-group">
					<div class="col-xs-12 col-sm-9 col-md-10 col-lg-10 col-sm-offset-3 col-md-offset-2 col-lg-offset-2">
						<input name="submit" type="submit" value="提交" class="btn btn-primary" style="width:100px;"/>
						<input type="hidden" name="token" value="{$_W['token']}" />
					</div>
				</div>
			</div>
		</div>

	</form>
</div>

<script type="text/javascript">


</script>

{template 'common/footer'}
